<?php
include("db_util.php");
$connection=DbConnect();
$statement = oci_parse($connection, 'SELECT * FROM album');

	oci_execute($statement);
//$statement=QueryExecution($connection,'SELECT * FROM wallpost');
echo "<table border='1'>\n";
while ($row = oci_fetch_array($statement, OCI_ASSOC+OCI_RETURN_NULLS)) {
    echo "<tr>\n";
    foreach ($row as $item) {
        echo "    <td>" . ($item !== null ? htmlentities($item, ENT_QUOTES) : "&nbsp;") . "</td>\n";
    }
    echo "</tr>\n";
}
echo "</table>\n";


if($row)
    echo "row OK!<br>";
//
// VERY important to close Oracle Database Connections and free statements!
//
oci_free_statement($statement);
oci_close($connection);
?>
